package com.websocket.hander;

import com.websocket.service.WebSocketConnection;
import org.java_websocket.WebSocket;

import java.lang.reflect.Method;
import java.security.Principal;
import java.util.Map;

public interface HandlerInterceptor {

    default boolean preHandle(Method handler, Map<String, Object> params, WebSocketConnection conn, Principal user) {
        return true;
    }
}
